package openGL.ES;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class Cube3D extends Activity {

	private GLSurfaceView surface;
	private GLRenderer renderer;
	
	private static boolean fullscreen;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		if (fullscreen) {
			requestWindowFeature(Window.FEATURE_NO_TITLE);
			getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		}
		
		surface = new GLSurfaceView(this);
		renderer = new GLRenderer();
		surface.setRenderer(renderer);
		setContentView(surface);
		
	}
	
	@Override
	public void onResume() {
		super.onResume();
		surface.onResume();
	}
	
	@Override
	public void onPause() {
		super.onPause();
		surface.onPause();
	}
	
	@Override
	public void onStop() {
    	super.onStop();
	}
	
}
